﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApplication
{
    public static class GetUser
    {
        public static UserInfo GetUserInfo(string val)
        {
            if (val != null) {
                var arr = val.Split('_');
                UserInfo u = new UserInfo();
                u.id = arr[0];
                u.account = arr[1];
                return u;
            }
            return null;

        }
    }
    public class UserInfo{
        public string id { get; set; }
        public string account { get; set; }
    }
}
